
if(APPLE)
  set(_AX_BASE_SPECIFIC_SRC
    base/Controller-apple.mm
  )

elseif(ANDROID)
  set(_AX_BASE_SPECIFIC_SRC
    base/Controller-android.cpp
  )
elseif(LINUX OR WINDOWS)
  set(_AX_BASE_SPECIFIC_SRC
    base/Controller-linux-win32.cpp
  )
endif()

set(_AX_BASE_HEADER
  base/astc.h
  base/pvr.h
  base/Value.h
  base/EventListenerMouse.h
  base/atitc.h
  base/EventTouch.h
  base/Data.h
  base/Macros.h
  base/EventAcceleration.h
  base/EventListenerKeyboard.h
  base/Controller.h
  base/Touch.h
  base/base64.h
  base/EventListenerController.h
  base/s3tc.h
  base/etc1.h
  base/etc2.h
  base/GameController.h
  base/Logging.h
  base/Constants.h
  base/Event.h
  base/Types.h
  base/Random.h
  base/Object.h
  base/Profiling.h
  base/ObjectFactory.h
  base/Properties.h
  base/Vector.h
  base/EventCustom.h
  base/EventKeyboard.h
  base/NinePatchImageParser.h
  base/EventListenerCustom.h
  base/EventDispatcher.h
  base/Utils.h
  base/EventController.h
  base/RefPtr.h
  base/Director.h
  base/EventListenerFocus.h
  base/UserDefault.h
  base/Config.h
  base/FPSImages.h
  base/ZipUtils.h
  base/Map.h
  base/text_utils.h
  base/ScriptSupport.h
  base/EventFocus.h
  base/Environment.h
  base/Protocols.h
  base/TGAlib.h
  base/EventMouse.h
  base/IMEDelegate.h
  base/AutoreleasePool.h
  base/StencilStateManager.h
  base/EventListenerTouch.h
  base/EventListenerAcceleration.h
  base/firePngData.h
  base/EventListener.h
  base/Scheduler.h
  base/EventType.h
  base/IMEDispatcher.h
  base/JsonWriter.h
  base/JobSystem.h
)

set(_AX_BASE_SRC
  base/JobSystem.cpp
  base/AutoreleasePool.cpp
  base/Environment.cpp
  base/Logging.cpp
  base/Controller.cpp
  base/Data.cpp
  base/NinePatchImageParser.cpp
  base/Director.cpp
  base/Event.cpp
  base/EventAcceleration.cpp
  base/EventController.cpp
  base/EventCustom.cpp
  base/EventDispatcher.cpp
  base/EventFocus.cpp
  base/EventKeyboard.cpp
  base/EventListener.cpp
  base/EventListenerAcceleration.cpp
  base/EventListenerController.cpp
  base/EventListenerCustom.cpp
  base/EventListenerFocus.cpp
  base/EventListenerKeyboard.cpp
  base/EventListenerMouse.cpp
  base/EventListenerTouch.cpp
  base/EventMouse.cpp
  base/EventTouch.cpp
  base/IMEDispatcher.cpp
  base/Profiling.cpp
  base/Properties.cpp
  base/Object.cpp
  base/Scheduler.cpp
  base/ScriptSupport.cpp
  base/Touch.cpp
  base/UserDefault.cpp
  base/Value.cpp
  base/ObjectFactory.cpp
  base/StencilStateManager.cpp
  base/TGAlib.cpp
  base/ZipUtils.cpp
  base/atitc.cpp
  base/base64.cpp
  base/FPSImages.cpp
  base/Random.cpp
  base/Types.cpp
  base/text_utils.cpp
  base/Utils.cpp
  base/SimpleTimer.cpp
  base/etc1.cpp
  base/etc2.cpp
  base/pvr.cpp
  base/s3tc.cpp
  base/astc.cpp
  ${_AX_BASE_SPECIFIC_SRC}
)

if(AX_ENABLE_CONSOLE)
  set(_AX_BASE_HEADER ${_AX_BASE_HEADER} base/Console.h)
  set(_AX_BASE_SRC ${_AX_BASE_SRC} base/Console.cpp)
endif()
